home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980424-19980901 / 000318_news@newsmaster….columbia.edu _Thu Jul 30 14:28:49 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA26053
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 30 Jul 1998 14:28:48 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA19784
  7.     for kermit.misc@watsun; Thu, 30 Jul 1998 14:28:47 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.help,comp.os.linux.networking,comp.protocols.kermit.misc
  11. Subject: Re: Scripting Telnet applications
  12. Date: 30 Jul 1998 18:28:43 GMT
  13. Organization: Columbia University
  14. Lines: 55
  15. Message-ID: <6pqe0r$msk$1@apakabar.cc.columbia.edu>
  16. References: <35BF2FC2.AB4E3B10@tconl.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.os.linux.advocacy:214363 comp.os.linux.development.apps:60217 comp.os.linux.networking:135840 comp.protocols.kermit.misc:9028
  19.  
  20. In article <35BF2FC2.AB4E3B10@tconl.com>, sosinski  <sosinski@tconl.com> wrote:
  21. : Recently, I have installed Slackware Linux on a PC at my office which is
  22. : a large telemarketing firm.  One of the reasons that we are looking into
  23. : Linux is because of its Unix like capabilities without licensing all
  24. : applications that you would run, not to mention the great features of
  25. : linux such as the 3270 emulation for IBM sessions with mainframes.
  26. : Anyway, I am looking for some kind of scripting for telnet instead of
  27. : the simple telnet <site name or ip here>.
  28. :     I have some experience with scripting windows 95/NT applications for
  29. : telnet and have a bit of experience with TCL and C++ but I am not sure
  30. : that these languages will be able to provide me with the emulation and
  31. : the type of scripting that I wish to achieve.  The goal here is to get
  32. : Linux to open up at 20 or more telnet sessions with remote servers, and
  33. : pull information off the server (mostly numbers).  The servers are
  34. : running SCO UNIX with SCO Ansi emulation, and unfortunately we are
  35. : unable to add applications to the SCO servers thus having the server
  36. : attempt the "script" command and ftp the results to the Linux box would
  37. : not be a viable solution.  I am fairly certain that telnet can be
  38. : scripted, I am just unsure of how to go about doing this.
  39. C-Kermit 6.0:
  40.  
  41.   http://www.columbia.edu/kermit/ck60.html
  42.  
  43. is a telnet client with a built-in scripting language AND file transfer.
  44. With it, you can automate your connections and you can save the session, or
  45. you can have the script perform the necessary interactions to find and save
  46. only the appropriate parts, or you can script the interactions on the far
  47. side in a way that creates a file, and then transfer the file if the other
  48. computer also has a Kermit program.
  49.  
  50. Since it is also a serial communications client, you can use virtually the
  51. same scripts over dialups, in case you can't make a telnet connection.
  52.  
  53. Since it is a highly portable program, you can also run it on any other
  54. variety of UNIX, or VMS, or Windows, OS/2, DOS, etc, and therefore you can
  55. use the same scripts on all those platforms with little or no alteration.
  56.  
  57. C-Kermit by itself is superior to (say) a combination of regular telnet 
  58. and expect, because it's integrated.  It uses its own control structures
  59. (FOR, IF-ELSE, WHILE, SWITCH, GOTO, etc), variables, functions, and timers
  60. intrinsically on the actual data that is going back and forth in real time.
  61. Also, C-Kermit is supported -- there's a newsgroup and tech support line
  62. which actually responds to your questions rather than ignoring them or
  63. sending you a 30 page form to fill out.
  64.  
  65. It's a good alternative ftp also, by virtue of being scriptable, and also
  66. because it can go through firewalls, includes recovery and update features,
  67. etc etc.
  68.  
  69. Since "how do I script telnet?" is such a Frequently Asked Question these
  70. days, I hope this answer can start finding its way into the appropriate FAQs.
  71.  
  72. - Frank